package com.sdhs.costcontrol.service.impl;

import java.util.List;
import com.sdhs.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sdhs.costcontrol.mapper.GcControlConfirmationPurchaseListMapper;
import com.sdhs.costcontrol.domain.GcControlConfirmationPurchaseList;
import com.sdhs.costcontrol.service.IGcControlConfirmationPurchaseListService;

/**
 * 成本控制--采购确认-明细Service业务层处理
 *
 * @author andong
 * @date 2025-03-17
 */
@Service
public class GcControlConfirmationPurchaseListServiceImpl implements IGcControlConfirmationPurchaseListService
{
    @Autowired
    private GcControlConfirmationPurchaseListMapper gcControlConfirmationPurchaseListMapper;

    /**
     * 查询成本控制--采购确认-明细
     *
     * @param id 成本控制--采购确认-明细主键
     * @return 成本控制--采购确认-明细
     */
    @Override
    public GcControlConfirmationPurchaseList selectGcControlConfirmationPurchaseListById(Long id)
    {
        return gcControlConfirmationPurchaseListMapper.selectGcControlConfirmationPurchaseListById(id);
    }

    /**
     * 查询成本控制--采购确认-明细列表
     *
     * @param gcControlConfirmationPurchaseList 成本控制--采购确认-明细
     * @return 成本控制--采购确认-明细
     */
    @Override
    public List<GcControlConfirmationPurchaseList> selectGcControlConfirmationPurchaseListList(GcControlConfirmationPurchaseList gcControlConfirmationPurchaseList)
    {
        return gcControlConfirmationPurchaseListMapper.selectGcControlConfirmationPurchaseListList(gcControlConfirmationPurchaseList);
    }

    /**
     * 新增成本控制--采购确认-明细
     *
     * @param gcControlConfirmationPurchaseList 成本控制--采购确认-明细
     * @return 结果
     */
    @Override
    public int insertGcControlConfirmationPurchaseList(GcControlConfirmationPurchaseList gcControlConfirmationPurchaseList)
    {
        return gcControlConfirmationPurchaseListMapper.insertGcControlConfirmationPurchaseList(gcControlConfirmationPurchaseList);
    }

    /**
     * 修改成本控制--采购确认-明细
     *
     * @param gcControlConfirmationPurchaseList 成本控制--采购确认-明细
     * @return 结果
     */
    @Override
    public int updateGcControlConfirmationPurchaseList(GcControlConfirmationPurchaseList gcControlConfirmationPurchaseList)
    {
        return gcControlConfirmationPurchaseListMapper.updateGcControlConfirmationPurchaseList(gcControlConfirmationPurchaseList);
    }

    /**
     * 批量删除成本控制--采购确认-明细
     *
     * @param ids 需要删除的成本控制--采购确认-明细主键
     * @return 结果
     */
    @Override
    public int deleteGcControlConfirmationPurchaseListByIds(Long[] ids)
    {
        return gcControlConfirmationPurchaseListMapper.deleteGcControlConfirmationPurchaseListByIds(ids);
    }

    /**
     * 删除成本控制--采购确认-明细信息
     *
     * @param id 成本控制--采购确认-明细主键
     * @return 结果
     */
    @Override
    public int deleteGcControlConfirmationPurchaseListById(Long id)
    {
        return gcControlConfirmationPurchaseListMapper.deleteGcControlConfirmationPurchaseListById(id);
    }
}
